

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'static-pages-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'theme'); ?>
	   <?php echo $form->dropDownList($model,'theme', array('cascade'=>'cascade', 'elegent'=>'elegent','inlay'=>'inlay','reveal'=>'reveal','deepblue'=>'deepblue'));?>
		<?php echo $form->error($model,'theme'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'content'); ?>
		<?php $this->widget('application.extensions.tinymce.ETinyMce', 
			array(
				'name'=>'StaticPages[content]',
				'options' => array('height'=>'250px','theme_advanced_toolbar_location'=>'top', 
							'theme'=>'advanced'),
				'editorTemplate'=>'full',
				'value'=>$model->content,
			)); ?>
		<?php echo $form->error($model,'content'); ?>
	</div>
	
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>
